﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BestLifePOS_Core.Data.Commands;
using BestLifePOS_Core.DomainObjects;

namespace BestLifePOS_Core.Data.Fascade
{

    public class Price_ListDAO 
    {
        public static string GetNewPriceListID()
        {
            BestLifeGetNewPriceListIDDataAction LvPLid = new BestLifeGetNewPriceListIDDataAction();
            return LvPLid.execute();
        }
        //public static string GetNewPriceListID()
        //{
        //    BestLifeGetNewPriceListIDDataAction LvPLid = new BestLifeGetNewPriceListIDDataAction();
        //    return LvPLid.execute();

        //}
        public static List<Price_List> GetPrice_ListbyItemID(string PProid)
        {
            BestLifeGetAllProductListByItemID LvPriceList = new BestLifeGetAllProductListByItemID(PProid);
            return LvPriceList.execute();
        }

        public static List<Price_List> CalculationItemDetails(decimal PCost, decimal PRetprice)
        {
            BestLifeCalculationItemDetailsDataAction LvItemDetails = new BestLifeCalculationItemDetailsDataAction(PCost, PRetprice);
            return LvItemDetails.execute();
        }


        public static int UpdateNewPrice(Price_List PPriceDetails)
        {
            BestLifeUpdatePriceListDataAction Lvrecipt = new BestLifeUpdatePriceListDataAction(PPriceDetails);
            return Lvrecipt.execute();
        }
    }
}

